package com.haipi.init;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.haipi.service.IInitService;

@Component("initSystem")
@Scope("singleton")
public class InitSystem {

	private static final long serialVersionUID = 1L;
	private final Logger log = Logger.getLogger(InitSystem.class);

	@Resource
	IInitService initService = null;

	@PostConstruct
	public void init() {
		log.info("initMailTimer()...begin");
		initService.initMailTimer();
		log.info("initMailTimer()...end");
	}
}
